﻿using Gecko.Entities;
using NHibernate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NHibernate.Linq;

namespace Gecko.Respositories
{
    public class UserInfoRepository : RepositoryBase<UserInfo>
    {
        public UserInfoRepository(ISession session):base(session)
        {
        }


        public UserInfo GetByUserId(string userId)
        {
            return Session.Query<UserInfo>().FirstOrDefault(p=>p.Username == userId);
        }
    }
}